<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('采购单位重置密码')" />
</head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="form-bidinfo-add">
			<input name="purchaseItemId"  type="hidden"  th:value="${sysPurchaseitem.purchaseItemId}" />
			<input name="purchasingUnitId"  type="hidden"  th:value="${sysPurchaseitem.purchasingUnitId}" />
			<input name="purchasePlanId"  type="hidden"  th:value="${sysPurchaseitem.purchasePlanId}" />
			<input name="goodsId"  type="hidden"  th:value="${sysPurchaseitem.goodsId}" />
			<div class="form-group">
				<label class="col-sm-3 control-label">竞价商品：</label>
				<div class="col-sm-8">
					<div class="form-control-static" th:text="${sysPurchaseitem.attribute1}"></div>

				</div>
			</div>

			<div class="form-group" th:if ="${isTaishi} eq 1">
				<label class="col-sm-3 control-label">最少报价商个数：</label>
				<div class="col-sm-9">
					<select class="form-control" name="lowerestNumber">
						<option value="0">请选择</option>
						<option value="3">3</option>
						<option value="4">4</option>
						<option value="5">5</option>
						<option value="6">6</option>
						<option value="7">7</option>
						<option value="8">8</option>
						<option value="9">9</option>
						<option value="10">10</option>
					</select>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label">竞价时间(小时)：：</label>
				<div class="col-sm-9">
					<select class="form-control" name="hour">
						<option value="0">请选择</option>

						<option value="4">4</option>
						<option value="5">5</option>
						<option value="6">6</option>
						<option value="7">7</option>
						<option value="8">8</option>
						<option value="9">9</option>
						<option value="10">10</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">需求数量：</label>
				<div class="col-sm-8">

						<input class="form-control" type="text" name="count" id="count" required>

				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">需求参数：</label>
				<div class="col-sm-9">
					<textarea type="text" name="demand" class="form-control" placeholder="请输入需求参数"></textarea>
				</div>
			</div>

		</form>
	</div>
	<th:block th:include="include :: footer" />
	<script type="text/javascript">
		$("#form-purchasingunit-resetPwd").validate({
			rules:{
				password:{
					required:true,
					minlength: 5,
					maxlength: 20
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	        	$.operate.save(ctx + "system/bidinfo/add", $('#form-bidinfo-add').serialize());
	        }
	    }
	</script>
</body>

</html>
